package com.hxzy.common.exception;


import com.hxzy.common.enums.AckCode;
import lombok.Getter;
import lombok.Setter;


/**
 * @Desc 自定义异常
 * @Author: admin
 * @Date: 2023/08/16/11:17
 */
@Getter
@Setter
public class ServiceException extends RuntimeException{
    private AckCode  ackCode;

    public ServiceException(AckCode ackCode) {
        super(ackCode.getMsg());
        this.ackCode=ackCode;
    }


}
